package cn.sirun.com.fca.account.uitl;

/**
 * @author vinsonhuang
 * @date 2018/6/27
 */
public abstract class CountDownRunnable implements Runnable {

    /**
     * 倒计时，单位：秒
     */
    protected int mCountDown;

    /**
     * 倒计间隔，单位：毫秒，默认为1000ms
     */
    protected int mInterval = 1000;

    public CountDownRunnable(int countDown) {
        mCountDown = countDown;
    }

    public CountDownRunnable(int countDown, int interval) {
        this.mCountDown = countDown;
        this.mInterval = interval;
    }

    public int getCountDown() {
        return mCountDown;
    }

    public void setCountDown(int countDown) {
        mCountDown = countDown;
    }

    public int getInterval() {
        return mInterval;
    }

    public void setInterval(int interval) {
        mInterval = interval;
    }
}
